package project.rbac.util;

import javax.swing.text.DateFormatter;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * 工具类-日期时间操作
 *
 * @author 刘嘉薏
 * @since 2025/6/5 16:56
 */
public class DateTimeUtils {
    private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
    private DateTimeUtils() {
    }
    public static String format(LocalDateTime dateTime){
        return dateTime.format(formatter);
    }
}
